import $http from "./requst";
// 登陆
export const login = data =>
  $http({ url: "/familyteacher/Login", method: "post", data });
// 首页数据
export const index = data =>
  $http({ url: "/familyteacher/My", method: "post", data });
// 核销验证码
export const verificationOrder = data =>
  $http({
    url: "/domestic/My/verificationOrder",
    method: "post",
    data
  });
// 需求大厅
export const Receiving = data =>
  $http({ url: "/familyteacher/Receiving", method: "post", data });
// 接单记录
export const recordOrder = data =>
  $http({ url: "/familyteacher/Receiving/recordOrder", method: "post", data });
// 课程打卡
export const clock = data =>
  $http({ url: "/familyteacher/Receiving/clock", method: "post", data });

// 接单操作
export const sureOrder = data =>
  $http({ url: "/familyteacher/Receiving/orderSave", method: "post", data });
// 提现记录
export const withdrawalRecord = data =>
  $http({
    url: "/familyteacher/Withdrawal/withdrawalRecord",
    method: "post",
    data
  });
// 资金明细
export const fundDetails = data =>
  $http({
    url: "/familyteacher/Withdrawal/fundDetails",
    method: "post",
    data
  });
// 立即提现
export const withdrawal = data =>
  $http({
    url: "/familyteacher/Withdrawal/withdrawal",
    method: "post",
    data
  });
// 获取可提现金额
export const getRawal = data =>
  $http({
    url: "/familyteacher/Withdrawal",
    method: "post",
    data
  });
// 待接单数量
export const waitOrder = data =>
  $http({
    url: "/familyteacher/My/waitOrder",
    method: "post",
    data
  });
// 账号设置
export const editInfo = data =>
  $http({
    url: "/familyteacher/My/editInfo",
    method: "post",
    data
  });
// 关联课程
export const teacherCourse = data =>
  $http({ url: "/familyteacher/My/teacherCourse", method: "post", data });

// 任务大厅
export const orderList = data =>
  $http({
    url: "/familyteacher/Receiving",
    method: "post",
    data
  });
